﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register Src="../../../../_controltemplates/15/MII_FIF/Header.ascx" TagPrefix="UC" TagName="Header" %>
<%@ Register Src="../../../../_controltemplates/15/MII_FIF/LeftMenu.ascx" TagPrefix="UC" TagName="LeftMenu" %>
<%@ Register Src="../../../../_controltemplates/15/MII_FIF/Header.ascx" TagPrefix="UC" TagName="PageHeader" %>

<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FormCHNetworkDevice.aspx.cs" Inherits="MII_FIF.Layouts.MII_FIF.Checklist.FormCHNetworkDevice" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <link href="../JQuery/jquery-ui-1.10.3.custom/css/ui-lightness/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" />
    <script src="../JQuery/jquery-ui-1.10.3.custom/js/jquery-1.9.1.js" type="text/javascript"></script>
    <script src="../JQuery/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>

    <link href="../Style.css" rel="stylesheet" type="text/css" />
        <div>
            <table class="TableLuar">
            <tr>
                <td class="LeftMenu">
                    <UC:LeftMenu runat="server" id="LeftMenu" />
                </td>
                <td style="vertical-align: top;">
                    <table class="TableDalam">
            <tr>
                <td>
        <table class="TableLuar">
            <tr>
                <td colspan="4">
                    <UC:PageHeader runat="server" ID="Header"></UC:PageHeader>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <h2 style="font-weight:bold">
                        <asp:Label ID="lblType" runat="server"></asp:Label> Network Device</h2>
                </td>
            </tr>
            <tr>
                <td class="KolomKiri">Location</td>
                <td colspan="3">
                    <asp:DropDownList runat="server" ID="ddlLocation" AutoPostBack="true" OnSelectedIndexChanged="ddlLocation_SelectedIndexChanged"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="KolomKiri">Rack Number</td>
                <td>
                     <asp:DropDownList runat="server" ID="ddlRackNumber" AutoPostBack="true" OnSelectedIndexChanged="ddlRackNumber_SelectedIndexChanged"></asp:DropDownList>
                </td>
                <td class="kolomKanan">Label Name</td>
                <td>
                     <asp:DropDownList runat="server" ID="ddlLabelname" AutoPostBack="true" OnSelectedIndexChanged="ddlLabelname_SelectedIndexChanged"></asp:DropDownList>
                </td>
            </tr>
            <tr style="display:none"><td colspan="4">
                <asp:Label ID="lblIDNet" runat="server"></asp:Label></td></tr>
            <tr><td colspan="4"><hr /></td></tr>
            <tr>
                <td colspan="4">
                    <h2>General Detail</h2>
                </td>
            </tr>
            <tr>
                <td class="KolomKiri">Inventory By</td>
                <td>
                    <asp:TextBox runat="server" ID="txtInventoryBy" Enabled="false"></asp:TextBox>
                </td>
                <td class="kolomKanan">Inventory Date</td>
                <td>
                    <asp:TextBox runat="server" ID="txtInventoryDate" Enabled="false"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="KolomKiri">System Class</td>
                <td colspan="3">
                    <asp:RadioButtonList runat="server" ID="rblSystemClass" RepeatDirection="Horizontal" RepeatLayout="Table" RepeatColumns="4" Enabled="false">
                        <asp:ListItem Text="Router" Value="Router" />
                        <asp:ListItem Text="Switch" Value="Switch" />
                        <asp:ListItem Text="Firewall/VPN" Value="Firewall/VPN" />
                        <asp:ListItem Text="Wireless" Value="Wireless" />
                        <asp:ListItem Text="Mobile Device" Value="Mobile Device" />
                        <asp:ListItem Text="Accelerator" Value="Accelerator" />
                        <asp:ListItem Text="Other" Value="Other" />
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="KolomKiri">Start From</td>
                <td colspan="3">
                    <asp:TextBox runat="server" ID="txtStartFrom" Enabled="false"/>
                </td>
            </tr>
            <tr>
                <td class="KolomKiri">System Brand</td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlSystemBrand" Enabled="false" />
                </td>
                <td class="KolomKanan">System Type</td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlSystemType" Enabled="false" />
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:Panel runat="server" ID="pnlHardwareDetail">
                        <hr />
                    </asp:Panel>
                    <h2>Hardware Detail</h2>
                </td>
            </tr>
            <tr>
                <td class="KolomKiri">Path Number</td>
                <td>
                    <asp:TextBox runat="server" ID="txtPathNumber" Enabled="false"/>
                </td>
                <td class="KolomKanan">Serial Number</td>
                <td>
                    <asp:TextBox runat="server" ID="txtSerialNumber" Enabled="false" />
                </td>
            </tr>
            <tr>
                <td class="KolomKiri">LAN Port</td>
                <td>
                    <asp:TextBox runat="server" ID="txtLANPort" Enabled="false"/>
                </td>
                <td class="KolomKanan">WAN Port</td>
                <td>
                    <asp:TextBox runat="server" ID="txtWANPort" Enabled="false"/>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:Panel ID="pnlModulDetail" runat="server">
                        <hr />
                        <h2>Module Detail</h2>
                        <table style="width: 100%;">
                            <tr>
                                <td>
                                <asp:GridView ID="GridModul" runat="server" CellPadding="4" 
                                        EnableModelValidation="True" ForeColor="#333333" GridLines="None" 
                                        AutoGenerateColumns="False" AllowPaging="True" 
                                        onpageindexchanging="GridModul_PageIndexChanging"
                                        EmptyDataText="There is no module" Font-Names="Arial" Width="100%" 
                                        AllowSorting="True" OnRowCreated="GridModul_RowCreated">
                                        <AlternatingRowStyle BackColor="White" />
                                        <Columns>
                                            <asp:BoundField DataField="ModulName" HeaderText="Module Name" >
                                            <ItemStyle Width="150px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="PathNumber" HeaderText="Path Number" >
                                            <ItemStyle Width="150px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="SerialNumber" HeaderText="Serial Number" >
                                            <ItemStyle Width="150px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="SlotName" HeaderText="Slot Name" >
                                            <ItemStyle Width="150px" />
                                            </asp:BoundField>
                                        </Columns>
                                        <EditRowStyle BackColor="#2461BF" />
                                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" 
                                            HorizontalAlign="Center" />
                                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" 
                                            HorizontalAlign="Center" />
                                        <PagerSettings Mode="NextPreviousFirstLast" FirstPageText="First" 
                                            LastPageText="Last" NextPageText="Next" PreviousPageText="Previous" />
                                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Right" />
                                        <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" />
                                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                    </asp:GridView>                                    
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label runat="server" ID="lblError"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td  class="KolomKiri">Firmware Version</td>
                <td  colspan="3">
                    <asp:TextBox runat="server" ID="txtFirmwareVersion" Enabled="false"/>
                </td>
            </tr>
            <tr>
            <td  class="KolomKiri">Attachment Download</td>
            <td  colspan="3">
                <asp:Button runat="server" ID="btnDownload" Text="Download" OnClientClick="download();" />
                <asp:Label runat="server" ID="lblFileName" ForeColor="Red"/>
            </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:Panel runat="server" ID="pnlSoftwareDetail">
                        <hr />
                    </asp:Panel>
                    <h2 style="font-weight:bold">Checklist Form</h2>
                </td>
            </tr>

            <tr>
                <td class="KolomKiri">Notes</td>
                <td colspan="3">
                    <asp:TextBox runat="server" ID="txtNotes" TextMode="MultiLine" Width="100%" Height="100px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="KolomKiri">Attachment</td>
                <td colspan="3">
                    <asp:FileUpload runat="server" ID="FUAttachment" />
                    <asp:HyperLink runat="server" ID="LinkAttachment" />
                </td>
            </tr>
            <tr>
                <td colspan="4" align="center">
                    <asp:Label ID="lblErrorMsg" runat="server" ForeColor="Red"></asp:Label>
                    <br />
                    <asp:Button runat="server" ID="btnRemove" Text="Remove Checklist" OnClick="btnRemove_Click"/>
                    <asp:Button runat="server" ID="btnSubmit" Text="Submit" OnClick="btnSubmit_Click" />
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button runat="server" ID="btnCancel" Text="Cancel" OnClick="btnCancel_Click"/>
                </td>
            </tr>
        </table>
                    </td>
            </tr>
                        </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Form CH Network
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >

</asp:Content>
